import sys
import os


class Six():
    
    def generateFile(self,path):
        i = 0
        file = open(path, 'w+')
        while (i < 1000000):
            file.writelines("this is line"+str(i)+"\r\n")
            i += 1
        file.close()
        print('ok')  


if __name__ == '__main__':
    filePath = "C:\\delelopment\\test.txt"
    Six().generateFile(filePath)
